﻿<%@ Page Title="Manage Account" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Manage.aspx.vb" Inherits="WSADProject.Manage" %>
<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    
   
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <hgroup class="title">
        <h1>&nbsp;</h1>
    </hgroup><p>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Account/ChangePassword.aspx">Change Password</asp:HyperLink>
    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Account/Editprofile.aspx">Edit Profile</asp:HyperLink><asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Account/myphotos.aspx" Enabled="True">My Photos</asp:HyperLink> <br />
            <%# Eval("DisplayMessage")%>
    <asp:FormView ID="FormView1" runat="server" BorderStyle="Solid" BorderWidth ="1" BorderColor ="WhiteSmoke" BackColor="#80BFFF" DataSourceID="SqlDataSource1" ForeColor="Black" Height="57px" Width="100%" >
        <ItemTemplate>
            <asp:Image ID="Image1" runat="server" ImageUrl='<%# String.Format("~/{0}", Eval("ProfilePicturesmall"))%>' />
            <h2><%# Eval("FirstName")%>  <%# Eval("LastName")%></h2>
            
            <table border="0">
                <tr>
                    <td>
                        <h3>Address</h3>
                    </td>
                </tr>
                <tr>
                    <td style="Width:100px;vertical-align:top">Street Address: </td>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("Address")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>State:</td>
                    <td>
                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("State")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>Country:</td>
                    <td>
                        <asp:Label ID="Label10" runat="server" Text='<%# Bind("Country")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <h3>Basic Information</h3>
                    </td>
                </tr>
                <tr>
                    <td>Birthday:</td>
                    <td>
                        <asp:Label ID="Birthday" runat="server" Text='<%# Bind("DateofBirth", "{0:MMMM dd, yyyy}")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>Sex:</td>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("Gender")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <h3>Contact Information</h3>
                    </td>
                </tr>
                <tr>
                    <td>Phone:</td>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("PhoneNumber")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td>
                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("EmailAddress")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <h3>About Me</h3>
                    </td>
                </tr>
                <tr>
                    <td style="Width:100px;vertical-align:top">Comments:</td>
                    <td>
                        <asp:Label ID="Label11" runat="server" Text='<%# Bind("Description")%>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>Interest:</td>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text='<%# Bind("Interest")%>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fishconn %>" ProviderName="<%$ ConnectionStrings:fishconn.ProviderName %>" SelectCommand="SELECT [FirstName], [LastName], [EmailAddress], [Address], [State], [Country], [Gender], [DateofBirth], [PhoneNumber], [Description], [ProfilePicturesmall], [Interest], [DisplayMessage] FROM [tblProfile] WHERE ([UserName] = ?)">
        <SelectParameters>
            <asp:ControlParameter DefaultValue="0" Name="UserName" ControlID="hiddenUserName" PropertyName="Value" />
        </SelectParameters>
    </asp:SqlDataSource>
         <asp:HiddenField ID="hiddenUserName" runat="server" Value="0" />
             </p>
</asp:Content>


